<template>

  <div class="cfoot"> 
    <h1>最新热品</h1>
    <div class="block">
      <el-carousel trigger="click" width="966px" height="467px"  arrow="never">
        <el-carousel-item v-for="(item,index) in imgs" :key="index">
          <!-- <h3 class="small">{{ item }}</h3> -->
          <img :src="item.src" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>
export default {
  name: "CartFooter",
  data() {
    return {
      imgs: [
        {src:require("../assets/01.jpg")},
        {src:require( "../assets/02.jpg")},
        {src:require("../assets/03.jpg")},
        {src:require("../assets/04.jpg")},
      ],
    };
  },
};
</script>

<style scoped>
.cfoot {
  margin-top:10px;
  margin-bottom:280px;
  width: 100%;
  height: 300px;
  text-align: center;

}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}
.el-carousel__item img{
  width: 1200px;
  height: 500px;

}

</style>